﻿@using CoralNode.MvcClient.Helper
@{
    ViewBag.Title = "Index";
}
@Html.IncludePage("CoralAdmin/Application", "_Left", new { current = "Application" })
<!--content-->
<div id="pbody">
    <div class="extra">
        <div class="pbody_top">
            <span class="ico ico_setting_user"></span><span class="t t_c">应用管理</span>
        </div>
        <div id="main">
            <div class="">
                <div class="tablelist_style1" data-js="tabellist_style1">
                    <div class="funsearch p_1 pl_2 pr_2 extra_normal">
                        <a class="btn_5 f_r ml_3" href="/m/Application/createApplication">添加应用</a>
                       
                    </div>
                    <table cellpadding="0" cellspacing="0">
                        <tr class="exclude">
                            <th width="60">选择</th>
                            <th align="left" width="50">ID</th>
                            <th align="left">应用名称</th>
                            <th align="left">应用Url</th>
                            <th align="center" width="140">操作</th>
                        </tr>
                        @foreach (var item in @ViewBag.ApplicationList)
                        {
                            <tr>
                                <td>
                                    <label class="checkbox_own">
                                        <input type="checkbox" value="@item.Id"/></label></td>
                                <td class="td_left">@item.Id</td>
                                <td class="td_left"><a href="/m/application/editApplication/@item.Id">@item.Name</a></td>
                                <td class="td_left">@item.Url</td>
                                <td>
                                    <div class="fun">
                                        <a href="/m/Application/editApplication/@item.Id">编辑</a>
                                        <a href="/m/Application/deleteApplication/@item.Id" class="js_delete">删除</a>
                                    </div>
                                </td>
                            </tr>
                        }
                    </table>
                    <div class="global_fun ">
                        <label class="checkbox_own gloabal_select">
                            <input type="checkbox" /></label>
                        <input type="button" class="btn_4 btn invert" value="反选" /><input type="button" class="btn_4 btn reset"
                            value="重置" />
                        <a href="#" class="js_delete">删除</a>
                    </div>
                </div>
            </div>
        </div>
        
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $('.nav_left_style2').find('li').eq(0).addClass('current');
    })
</script>
